//
//  CASubmitOrderApi.m
//  LNH
//
//  Created by twentylx on 2018/2/18.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CASubmitOrderApi.h"

@implementation CASubmitOrderApi {
    NSString *_cartIds;
    NSString *_addressId;
    NSString *_remark;
}

- (instancetype) initCartIds:(NSString *) cartIds AddressId:(NSString *) addressId Remark:(NSString *) remark {
    self = [super init];
    if (self) {
        _cartIds = cartIds;
        _addressId = addressId;
        _remark = remark;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"cart_id":_cartIds,
             @"address_id":_addressId,
             @"remark":_remark,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@orderDone",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@orderDone",BASE_SERVICE_DOMAIN];
}


@end
